package com.chan.mediacamera.clip;

import android.media.MediaCodec;
import android.media.MediaFormat;

import java.nio.ByteBuffer;

public interface OnClipperListener {

    void onStart(int dataStats);

    void onStop(int dataStats);

    void onProcess(long currentPosition);

    boolean isMuxStarted();

    int onFormatChanged(MediaFormat newFormat);

    void writeData(int mTrackIndex, ByteBuffer encodedData, MediaCodec.BufferInfo mBufferInfo);
}
